<?php
/*
 * estudo de padrões de projetos com php
 * author: fabricio s costa
 * version: 1.0
 * site: http://fabriciojf.com
 */
require_once('smarty/SmartyInclude.php');
require_once('com/fabriciojf/include/Menu.class.php');

$smarty = SmartyInclude::getSmarty();

$smarty->assign('menupost', Menu::getMenuPost());
$smarty->assign('menupage', Menu::getMenuPages());
$smarty->assign('menuon', Menu::getMenuOn());

$smarty->assign('nick', $_POST['nick']);
$smarty->assign('email', $_POST['email']);

$no1 = rand(1, 20);
$no2 = rand(1, 20);
$smarty->assign('validator', $no1 . '+' . $no2);
$smarty->assign('no1', $no1);
$smarty->assign('no2', $no2);

$smarty->assign('mensagem', $_POST['mensagem']);
$smarty->display('CriarUsuario.tpl');

?>
